package com.ys.entity.sys;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="YS_RowClickGridCol", catalog="Id")
public class YsRowClickGridCol extends BaseEntity<YsRowClickGridCol> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="RowClickGridId", nameJava="rowClickGridId", typeDataBase="bigint")
	private Long rowClickGridId;
	@YsField(nameDataBase="Name", nameJava="name", typeDataBase="varchar")
	private String name;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="SortNo", nameJava="sortNo", typeDataBase="int")
	private Integer sortNo;
	@YsField(nameDataBase="FrontType", nameJava="frontType", typeDataBase="varchar")
	private String frontType;
	@YsField(nameDataBase="FrontEdit", nameJava="frontEdit", typeDataBase="tinyint")
	private Integer frontEdit;
	@YsField(nameDataBase="FrontWidth", nameJava="frontWidth", typeDataBase="int")
	private Integer frontWidth;
	@YsField(nameDataBase="FrontAlign", nameJava="frontAlign", typeDataBase="tinyint")
	private Integer frontAlign;
	@YsField(nameDataBase="FrontShow", nameJava="frontShow", typeDataBase="tinyint")
	private Integer frontShow;
	@YsField(nameDataBase="DictKeyBase", nameJava="dictKeyBase", typeDataBase="varchar")
	private String dictKeyBase;
	@YsField(nameDataBase="ModalKey", nameJava="modalKey", typeDataBase="varchar")
	private String modalKey;
	@YsField(nameDataBase="ModalRelativeCode", nameJava="modalRelativeCode", typeDataBase="varchar")
	private String modalRelativeCode;
	@YsField(nameDataBase="ModalValueCode", nameJava="modalValueCode", typeDataBase="varchar")
	private String modalValueCode;
	@YsField(nameDataBase="MultyFileSourceType", nameJava="multyFileSourceType", typeDataBase="tinyint")
	private Integer multyFileSourceType;
	@YsField(nameDataBase="TplScript", nameJava="tplScript", typeDataBase="varchar")
	private String tplScript;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public YsRowClickGridCol setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getRowClickGridId() {
		return rowClickGridId;
	}
	public YsRowClickGridCol setRowClickGridId(Long rowClickGridId) {
		this.rowClickGridId = rowClickGridId;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsRowClickGridCol setName(String name) {
		this.name = name;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsRowClickGridCol setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getSortNo() {
		return sortNo;
	}
	public YsRowClickGridCol setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
		return this;
	}
	public String getFrontType() {
		return frontType;
	}
	public YsRowClickGridCol setFrontType(String frontType) {
		this.frontType = frontType;
		return this;
	}
	public Integer getFrontEdit() {
		return frontEdit;
	}
	public YsRowClickGridCol setFrontEdit(Integer frontEdit) {
		this.frontEdit = frontEdit;
		return this;
	}
	public Integer getFrontWidth() {
		return frontWidth;
	}
	public YsRowClickGridCol setFrontWidth(Integer frontWidth) {
		this.frontWidth = frontWidth;
		return this;
	}
	public Integer getFrontAlign() {
		return frontAlign;
	}
	public YsRowClickGridCol setFrontAlign(Integer frontAlign) {
		this.frontAlign = frontAlign;
		return this;
	}
	public Integer getFrontShow() {
		return frontShow;
	}
	public YsRowClickGridCol setFrontShow(Integer frontShow) {
		this.frontShow = frontShow;
		return this;
	}
	public String getDictKeyBase() {
		return dictKeyBase;
	}
	public YsRowClickGridCol setDictKeyBase(String dictKeyBase) {
		this.dictKeyBase = dictKeyBase;
		return this;
	}
	public String getModalKey() {
		return modalKey;
	}
	public YsRowClickGridCol setModalKey(String modalKey) {
		this.modalKey = modalKey;
		return this;
	}
	public String getModalRelativeCode() {
		return modalRelativeCode;
	}
	public YsRowClickGridCol setModalRelativeCode(String modalRelativeCode) {
		this.modalRelativeCode = modalRelativeCode;
		return this;
	}
	public String getModalValueCode() {
		return modalValueCode;
	}
	public YsRowClickGridCol setModalValueCode(String modalValueCode) {
		this.modalValueCode = modalValueCode;
		return this;
	}
	public Integer getMultyFileSourceType() {
		return multyFileSourceType;
	}
	public YsRowClickGridCol setMultyFileSourceType(Integer multyFileSourceType) {
		this.multyFileSourceType = multyFileSourceType;
		return this;
	}
	public String getTplScript() {
		return tplScript;
	}
	public YsRowClickGridCol setTplScript(String tplScript) {
		this.tplScript = tplScript;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsRowClickGridCol setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsRowClickGridCol setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsRowClickGridCol setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsRowClickGridCol ysRowClickGridCol(
		Long rowClickGridId,
		String name,
		String code,
		Integer sortNo,
		String frontType,
		Integer frontEdit,
		Integer frontWidth,
		Integer frontAlign,
		Integer frontShow,
		String dictKeyBase,
		String modalKey,
		String modalRelativeCode,
		String modalValueCode,
		Integer multyFileSourceType,
		String tplScript,
		Integer status
			) {
		YsRowClickGridCol entity = new YsRowClickGridCol();
		entity.setRowClickGridId(rowClickGridId);
		entity.setName(name);
		entity.setCode(code);
		entity.setSortNo(sortNo);
		entity.setFrontType(frontType);
		entity.setFrontEdit(frontEdit);
		entity.setFrontWidth(frontWidth);
		entity.setFrontAlign(frontAlign);
		entity.setFrontShow(frontShow);
		entity.setDictKeyBase(dictKeyBase);
		entity.setModalKey(modalKey);
		entity.setModalRelativeCode(modalRelativeCode);
		entity.setModalValueCode(modalValueCode);
		entity.setMultyFileSourceType(multyFileSourceType);
		entity.setTplScript(tplScript);
		entity.setStatus(status);
		return entity;
	}
}